/**
 * 
 */
package lu.peersoft.timesheet



/**
 * @author thor
 *
 */
public class Event{
    private RESULT_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS"
    Date start
    Date end
    String Description
    public Event(entry, offset) {
        start = entry."gd:when"."@startTime".text()[0..-4].asDate(RESULT_DATE_FORMAT)
        //start.add(Calendar.HOUR, offset)
        start.time += offset * 3600 * 1000
        end = entry."gd:when"."@endTime".text()[0..-4].asDate(RESULT_DATE_FORMAT)
        //end.add(Calendar.HOUR, offset)
        end.time += offset * 3600 * 1000
        this.description = entry.title
    }
}
